<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
    <meta name="description" content="壹果Yiigoo，致力创造对婴童更呵护、更舒服、更安心安全的产品，重新定义“互联网+”专业婴童品牌。">
    <meta name="keywords" content="壹果,yiigoo,壹果企画,壹果企画（北京）科技有限公司,母婴,婴童,爬服">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0" />
    <meta name="format-detection" content="telephone=no"/>
    <meta name="apple-mobile-web-app-capable" content="yes" /> 
    <link rel="stylesheet" type="text/css" href="http://mtest.yiigoo.com/css/base.css?v=45a13f69c0">
    <link rel="stylesheet" type="text/css" href="http://mtest.yiigoo.com/css/yiigoo.css?v=20170322"> 
    <link rel="stylesheet" type="text/css" href="http://mtest.yiigoo.com/css/zt.css?v=${version}">
    
    <title>${ygPages.pageTitle}</title>
</head>
<body>

<div id="yg-doc">
  <input type="hidden" name="shareTitle" value="${ygPages.shareTitle}">
  <input type="hidden" name="shareLink" value="${ygPages.shareLink}">
  <input type="hidden" name="shareContent" value="${ygPages.shareContent}">
  <input type="hidden" name="shareImage" value="${ygPages.shareImage}">
    <input type="hidden" name="pageType" value="${ygPages.pageType}">
    <div id="yg-bd">       
        
            <div class="zt-template">   

            <#assign text>

            ygPages.pageContent

            </#assign>

            <#assign json=ygPages.pageContent?eval />

            <#list json as item>

             <#if item.type=="banner">

              <div class="zt-col-1">
                 <ul>
                  <#if item.linkUrl!="">
                  <li><a href="${item.linkUrl}"><img src="${item.imagePath}" alt=""></a></li>
                  <#else>
                  <li><img src="${item.imagePath}" alt=""></li>
                  </#if>
                 </ul>
              </div>
              </#if>
              <#if item.type=="category">
				
              <div class="zt-col-${item.amount}">
                 <ul>      
                  <#list item.productList as t>   
                  <#if t.linkUrl!="">
                  <li><a href="${t.linkUrl}"><img src="${t.imagePath}" alt=""></a></li>
                  <#else>
                  <li><img src="${t.imagePath}" alt=""></li>
                  </#if>        
                
                 </#list>                
                 </ul>
               
              </div>
              </#if>

            <#if item.type=="coupon">
                <#if item.amount=="5">    
                 <div class="zt-col-1">
                     <ul>
                     <#list item.couponList as t>
                      <li  class="gift"><img src="${t.imagePath}" alt=""></li>
                     </#list>
                     </ul>
                </div>
                <#elseif item.amount=="6"> 
             		<div class="zt-col-1">
                     <ul>
                     <#list item.couponList as t>
                      <li  class="tryProduct"><img src="${t.imagePath}" alt=""></li>
                     </#list>
                     </ul>
                </div>
                <#else>
                  <div class="zt-col-${item.amount}">
                     <ul>
                     <#list item.couponList as t>
                      <li batchId=${t.batchId} class="coupon"><img src="${t.imagePath}" alt=""></li>
                     </#list>
                     </ul>
                  </div>
              </#if>
            </#if>
               <#if item.type=="product">
                  
              <div class="zt-col-${item.amount}">
                 <ul>
                 <#list item.productList as t>
                  <li><a href="http://m.yiigoo.com/product/product.html?productId=${t.productId}"><img src="${t.imagePath}" alt=""></a></li>
                 </#list>
                 </ul>
              </div>
              </#if>         

            </#list>



            </div>
             
 </div>
 <!--领券弹层-->
        <div class="clayer" style="display:none">
            <h3>恭喜</h3>
            <p>领券成功</p>
            <a class="but"><img src="http://m.yiigoo.com/images/ok.png"></a> 
        </div>
<div class="clicklayer" style="display:none"></div>
       <article class="coupon_main" style="display:none;">
      <div class="coupon_layer">
        <a href="javascript:;" class="close"><img src="http://mtest.yiigoo.com/coupon/images/layer/del.png"></a>
        <div class="coupon_layer_top">
          <div class="get_ok">
          </div>
        </div>
        <div class="coupon_layer_bot">
          <div class="gobutton">
          </div>
        </div>
      </div>
      <div class="clicklayer"></div>
    </article>
</div>
<!--活动弹出 start-->
		<section class="chake_tier" style="display:none;">
			<!--close-->
			<a class="close" href="javascript:void(0);"><img src="http://m.yiigoo.com/images/close.png"/></a>
			<!--活动弹层-->
			<div class="position">
				<article class="shake_btn"></article>
			</div>
			<article class="shakelayer"></article>
		</section>
<script type="text/javascript" src="http://img1.yiigoo.com/lib/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script type="text/javascript" src="http://img1.yiigoo.com/lib/wxshare.js"></script>
<script type="text/javascript" src = "http://mtest.yiigoo.com/js/common.js?v=${version}"></script>
<script type="text/javascript" src = "http://mtest.yiigoo.com/js/coupon/gift.js?v=${version}"></script>
<script type="text/javascript" src = "http://m.yiigoo.com/js/coupon/gift.js?v=${version}"></script>
<script type="text/javascript" src = "http://mtest.yiigoo.com/js/coupon/tryproduct.js?v=${version}"></script>

<script type="text/javascript">

     //分类页底部导航选中
	var pageType=$("[name=pageType]").val();
    if(pageType=="Category")
     YIIGOO.bottomBar("js_bottombar_list");
   else if(window.location.href.indexOf("1497581005")==-1&&pageType!="PromotionNoMenu")
   YIIGOO.bottomBar();
   if(pageType=="PromotionNoMenu")$("#yg-bd").css("padding-bottom","0px");
   //领券
   $(".coupon").click(function(){       
        var batchId=$(this).attr("batchId");
        YIIGOO.getLoginType(window.location.href,function(){          
                $.ajax({
                        type:"get",
                        async:"false",
                        url:GLOBALURL.dataUrl+"mobile/coupon/receiveCouponBatch.do",
                        data:{couponBatchIds:batchId},
                        dataType:"jsonp",
                        success:function(data){  
                                                 
                                $(".clayer").show();
                                $(".clicklayer").show();
                                              
                        },
                        error:function(){
                            YIIGOO.popWindow("系统繁忙，请稍后再试…");
                        }
            });
    });  
  });
    
    //取消弹窗
    $(".but").click(function(){$(".clayer").hide();$(".clicklayer").hide();})
   
    //微信分享
        if(YIIGOO.isWeixin()){    
                      
                var text=$("[name=shareTitle]").val(),
                desc=$("[name=shareContent]").val(),
                url=$("[name=shareLink]").val()+"?sourceCode="+YIIGOO.getLocalStorage("myCode")+"&a=b",
                pic=$("[name=shareImage]").val();         
                share(text,desc,url,pic);                
            }


</script>

</body>
</html>